package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HardWareConfigMapper;
import com.ruoyi.system.domain.HardWareConfig;
import com.ruoyi.system.service.IHardWareConfigService;

/**
 * 硬件配置Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-03-26
 */
@Service
public class HardWareConfigServiceImpl implements IHardWareConfigService 
{
    @Autowired
    private HardWareConfigMapper hardWareConfigMapper;

    /**
     * 查询硬件配置
     * 
     * @param id 硬件配置主键
     * @return 硬件配置
     */
    @Override
    public HardWareConfig selectHardWareConfigById(Long id)
    {
        return hardWareConfigMapper.selectHardWareConfigById(id);
    }

    /**
     * 查询硬件配置列表
     * 
     * @param hardWareConfig 硬件配置
     * @return 硬件配置
     */
    @Override
    public List<HardWareConfig> selectHardWareConfigList(HardWareConfig hardWareConfig)
    {
        return hardWareConfigMapper.selectHardWareConfigList(hardWareConfig);
    }

    /**
     * 新增硬件配置
     * 
     * @param hardWareConfig 硬件配置
     * @return 结果
     */
    @Override
    public int insertHardWareConfig(HardWareConfig hardWareConfig)
    {
        return hardWareConfigMapper.insertHardWareConfig(hardWareConfig);
    }

    /**
     * 修改硬件配置
     * 
     * @param hardWareConfig 硬件配置
     * @return 结果
     */
    @Override
    public int updateHardWareConfig(HardWareConfig hardWareConfig)
    {
        return hardWareConfigMapper.updateHardWareConfig(hardWareConfig);
    }

    /**
     * 批量删除硬件配置
     * 
     * @param ids 需要删除的硬件配置主键
     * @return 结果
     */
    @Override
    public int deleteHardWareConfigByIds(Long[] ids)
    {
        return hardWareConfigMapper.deleteHardWareConfigByIds(ids);
    }

    /**
     * 删除硬件配置信息
     * 
     * @param id 硬件配置主键
     * @return 结果
     */
    @Override
    public int deleteHardWareConfigById(Long id)
    {
        return hardWareConfigMapper.deleteHardWareConfigById(id);
    }
}
